source comm.cfg


ssh ${MAAS01} "if [ ! -d '${INSTALLDIR}' ]; then mkdir -p '${INSTALLDIR}'; fi"
ssh ${MAAS02} "if [ ! -d '${INSTALLDIR}' ]; then mkdir -p '${INSTALLDIR}'; fi"

scp comm.cfg ${MAAS01}:${INSTALLDIR}
scp comm.cfg ${MAAS02}:${INSTALLDIR}

nohup ssh ${MAAS01} "cd ${INSTALLDIR} && bash -s" < install.sh > ${MAAS01}-maas.log 2>&1 &
nohup ssh ${MAAS02} "cd ${INSTALLDIR} && bash -s" < install.sh > ${MAAS02}-maas.log 2>&1 &
